package com.wonders.hisdoctor.station.project.record.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Description: 查询病历Vo
 *
 * @author tong-aj
 * <p>
 * Create: 2021-01-22 16:09
 */
@Data
@ApiModel("查询病历Vo")
public class OutpRequestVo {

    @ApiModelProperty("病人标识号")
    @NotBlank(message = "病人标识号不能为空")
    private String patientId;

    @ApiModelProperty("就诊时间")
    @NotNull(message = "就诊时间不能为空")
    @DateTimeFormat(pattern = "yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy/MM/dd")
    private Date visitDate;

    @ApiModelProperty("就诊序号")
    @NotNull(message = "就诊序号不能为空")
    private Integer visitNo;

    @ApiModelProperty("医生")
    private String empNo;

    @ApiModelProperty("机构代码")
    private String hospitalCode;
}
